<?php


namespace app\admin\model\product;

use app\admin\model\BaseModel;

/**
 * 管理员管理
 * Class Admin
 * @package app\admin\model
 */
class Loan extends BaseModel
{
    
    public static function systemPage($where)
    {
        $model = new self;


        if ($where['page'] && $where['limit']) $model = $model->page((int)$where['page'],(int)$where['limit']);
        $count = self::counts($model);
        $data = $model->select();

        $data = $data ? $data->toArray() : [];
        return compact("data","count");
    }

 

}